package com.bicon.botu.mall.base.service;


import com.baomidou.mybatisplus.service.IService;
import com.bicon.botu.mall.base.dto.CarefullyChosenDto;
import com.bicon.botu.mall.base.entity.CarefullyChosen;
import com.bicon.botu.core.base.common.entity.BaseResult;

import java.util.List;

/**
 * 为你精选 服务类
 *
 * @author 张凡
 * @date 2017/7/19 下午 14:49
 */
public interface ICarefullyChosenService extends IService<CarefullyChosen> {
    /**
     * 新增为你精选图
     *
     * @param carefullyChosenList 精选图对象集合
     * @return
     */
    boolean insert(List<CarefullyChosen> carefullyChosenList);

    /**
     * 删除为你精选图
     *
     * @param idJson 为你精选Id集合
     * @return
     */
    BaseResult delete(String idJson);

    /**
     * 修改为你精选标题
     *
     * @param title
     * @return
     */
    BaseResult updateTitle(String title);

    /**
     * 修改为你精选图
     *
     * @param carefullyChosenList 精选图对象集合
     * @return
     */
    BaseResult update(List<CarefullyChosen> carefullyChosenList);

    /**
     * 初始化为你精选图到redis
     *
     * @return
     */
    BaseResult initCarefullyChosenToRedis();

    /**
     * 获取为你精选图详情
     *
     * @return
     */
    CarefullyChosenDto getCarefullyChosenDetailFromRedis();

    /**
     * 修改排序
     *
     * @param carefullyChosenList 精选图对象集合
     * @return
     */
    BaseResult updaterSort(List<CarefullyChosen> carefullyChosenList);
}
